Repository navigation
Conversation
— codex GPT-6 on behalf of Ralf — Device memory-pool support does not imply host memory-pool support. Waive the pinned-memory sample before stream creation when host pools are unavailable, and cover the waiver and supported-path error behavior.
— codex GPT-6 on behalf of Ralf — Generic POSIX file-descriptor handle support does not guarantee memory pool IPC support. Check the pool-specific POSIX-FD bit before creating the pool, and test masks with and without that bit.
— codex GPT-6 on behalf of Ralf — On headless Linux, waive before CUDA setup or OpenGL window creation. Cover the negotiated waiver code and preserve CUDA setup errors when a display is present.
— codex GPT-6 on behalf of Ralf — Collect unrelated buffer finalizers with the worker context current before capture begins. Always close the graph builder so an invalidated capture cannot cause cascading failures in later tests.
…ix-orin-sample-capabilities
|
@nikshayshrivastava for visibility. |
|
No actionable comments were generated in the recent review. Summary
Change: Bug fix Merge Risk:
|
|
/ok to test 825d029 |
|
— codex GPT-6 on behalf of Ralf —
Summary
With optional sample dependencies installed, three
cuda.coresamples fail on a headless Jetson AGX Orin Developer Kit because they attempt unavailable memory-pool or display operations.Check the specific host-pool and IPC-pool capabilities, and waive the MLIR fluid sample when Linux has no display. Add six behavioral regression cases covering unsupported states and error propagation on supported paths.
Also isolate the memory-resource capture test from delayed buffer finalizers and always close its graph builder.
The original-error excerpts below omit machine-specific path prefixes and intermediate frames.
Commit 498b134ab fixes
copyImageArraytoGPUon devices that support device memory pools but do not support host memory pools. Checkhost_memory_pools_supportedbefore constructing the stream or pinned memory resource, and return the negotiated sample waiver code when unavailable.Original error
Commit 09c50aa1e fixes
ipcMemoryPoolon devices with generic POSIX file-descriptor handle support but no POSIX-FD support for memory-pool IPC. Check the POSIX-FD bit inmempool_supported_handle_typesbefore creating the IPC-enabled pool.Original error
Commit bcf02a82d fixes
glInteropFluidNumbaCudaMliron headless Linux systems. Return the negotiated waiver code whenDISPLAYis unset, before querying CUDA or importing the OpenGL window backend.Original error
Commit 5838c4ea8 fixes test isolation in
test_device_memory_resource_first_touch_under_capture. Unrelated buffer finalizers could run during the worker's capture and invalidate it. Collect that garbage with the worker's CUDA context current before capture, then close the graph builder infinallyso a failed case cannot leave capture state behind.Original error
The invalidated capture also caused subsequent capture and teardown failures:
Validation
Before the main merge below, all exercised CUDA 13 test suites finished with zero failures:
The three original sample cases now report waivers for unavailable hardware or display capabilities. Existing native builds were reused.
Local pre-commit hooks pass except the full-repository TruffleHog scan, which repeatedly exits with SIGSEGV. The remaining hooks pass with that hook skipped for the invocation only; repository configuration is unchanged. TruffleHog also passes against all five changed files with zero findings.
A final empty CI-control commit keeps copy-pr-bot CI subject to manual approval.
Main merge and post-merge checks
Merged upstream
mainat 320532eb1 in merge commit 825d029ce. None of the five PR files changed during the merge, and the four fix commits above retain their identities.Post-merge sample regression/waiver tests and CI bindings-floor reader tests: 40 passed. Local source checks pass apart from the same full-repository TruffleHog crash noted above.
The table records the pre-merge local runs. Full hosted CI subsequently rebuilt the packages and passed the complete matrix at merge head 825d029ce. Hosted Linux and Windows pre-commit checks also pass, including TruffleHog.
The Windows L4 CTK 13.0.2 bindings-floor job passed on an unchanged rerun. Its initial teardown OOM matches the Windows pinned-memory failures tracked in #3472.
Checklist